package com.linkage.event.pojo.dao;

import com.linkage.event.pojo.entity.EventTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface EventTaskMapper {

    int deleteByEventMsgId(String eventMsgId);

    int insertSelective(EventTask record);

    EventTask selectByPrimaryKey(EventTask key);

    List<EventTask> selectByEventIdAndUserId(@Param("eventMsgId") String eventMsgId,@Param("userId")String userId);

    int updateByPrimaryKeySelective(EventTask record);

    List<EventTask> selectByEventMsgId(@Param("eventMsgId") String eventMsgId,@Param("isIdentity")String isIdentity);
}